import { _decorator } from 'cc';
import { PARAMS_NAME_ENUM, DIRECTION_ORDER_ENUM } from '../Enums';
import { SubStateMachine } from './SubStateMachine';


const { ccclass, property } = _decorator;

const BASE_URL = `texture/player/idle`

export default class DirectionSubStateMachine extends SubStateMachine {

    run(): void {
        const value = this.fsm.getParams(PARAMS_NAME_ENUM.DIRECTION)
        this.currentState = this.stateMachine.get(DIRECTION_ORDER_ENUM[value as number])
    }

}




